/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using DGZImp.SysEntity;

namespace DGZImp.BasProject.DomainModels
{
    [Entity(TableCnName = "工艺设备",TableName = "Bas_RouteDevice",DBServer = "ServiceDbContext")]
    public partial class Bas_RouteDevice:ServiceEntity
    {
        /// <summary>
       ///工艺步骤ID
       /// </summary>
       [Display(Name ="工艺步骤ID")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       public long? RouteControlId { get; set; }

       /// <summary>
       ///ID
       /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
       [Key]
       [Display(Name ="ID")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long RouteDeviceId { get; set; }

       /// <summary>
       ///设备
       /// </summary>
       [Display(Name ="设备")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       public long? MachineId { get; set; }

       /// <summary>
       ///小时产量
       /// </summary>
       [Display(Name ="小时产量")]
       [DisplayFormat(DataFormatString="20,4")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? Uph { get; set; }

       /// <summary>
       ///产出节拍
       /// </summary>
       [Display(Name ="产出节拍")]
       [DisplayFormat(DataFormatString="8,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? OutputCircle { get; set; }

       /// <summary>
       ///前置时长分钟
       /// </summary>
       [Display(Name ="前置时长分钟")]
       [DisplayFormat(DataFormatString="8,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? BeforeMinutes { get; set; }

       /// <summary>
       ///准备时长分钟
       /// </summary>
       [Display(Name ="准备时长分钟")]
       [DisplayFormat(DataFormatString="8,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? PreparationMinutes { get; set; }

       /// <summary>
       ///后置时长分钟
       /// </summary>
       [Display(Name ="后置时长分钟")]
       [DisplayFormat(DataFormatString="8,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? AfterMinutes { get; set; }

       /// <summary>
       ///工序
       /// </summary>
       [Display(Name ="工序")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       public long? GroupId { get; set; }

       /// <summary>
       ///是否有效
       /// </summary>
       [Display(Name ="是否有效")]
       [Column(TypeName="int")]
       public int? IsValid { get; set; }

       /// <summary>
       ///创建用户
       /// </summary>
       [Display(Name ="创建用户")]
       [Column(TypeName="bigint")]
       public long? CreateId { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string Creator { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       public DateTime? CreateTime { get; set; }

       /// <summary>
       ///修改用户
       /// </summary>
       [Display(Name ="修改用户")]
       [Column(TypeName="bigint")]
       public long? ModifyId { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       public string Modifier { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       public DateTime? ModifyTime { get; set; }

       /// <summary>
       ///设备层级，越高的在后道工序
       /// </summary>
       [Display(Name ="设备层级，越高的在后道工序")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? MachineLevel { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(512)]
       [Column(TypeName="nvarchar(512)")]
       [Editable(true)]
       public string Remarks { get; set; }

       /// <summary>
       ///类型
       /// </summary>
       [Display(Name ="类型")]
       [MaxLength(1)]
       [Column(TypeName="nvarchar(1)")]
       [Editable(true)]
       public string Type { get; set; }

       /// <summary>
       ///位置
       /// </summary>
       [Display(Name ="位置")]
       [Column(TypeName="int")]
       public int? PositionRow { get; set; }

       /// <summary>
       ///关联设备
       /// </summary>
       [Display(Name ="关联设备")]
       [Column(TypeName="bigint")]
       public long? RelatedDevice { get; set; }

       /// <summary>
       ///0--不含ce，1--含ce
       /// </summary>
       [Display(Name ="0--不含ce，1--含ce")]
       [Column(TypeName="int")]
       public int? IsCe { get; set; }

       
    }
}